package com.rf.richfitwheel.workflow.service;


import com.rf.richfitwheel.admin.sys.vo.UserVO;
import com.rf.richfitwheel.workflow.model.WfProcessTask;
import org.apache.batik.transcoder.TranscoderException;

import java.io.IOException;
import java.util.List;

public interface WfProcessTaskService {


    WfProcessTask findByProDefIdAndTaskDefKey(String proDefId, String taskDefKey);

    void updateWfProcessTask(WfProcessTask wfProcessTask);

    void addWfProcessTask(WfProcessTask wfProcessTask);

    void updateWfProcessTasks(List<WfProcessTask> WfProcessTasks);

    void deleteByProDefId(String proDefId);

    List<WfProcessTask> findByProDefKey(String proDefKey);

    void updateWfProcessTasksAndPublish(String modelExtendId, List<WfProcessTask> wfProcessTasks, UserVO userVO) throws TranscoderException, IOException;

    WfProcessTask getByStationProcessOrderId(String stationProcessOrderId);

    void deleteByProDefKey(String key);

    List<WfProcessTask> findByProDefId(String proDefId);
}

